package cn.edu.wfit.modules.learn.service.impl.projectmanagement;

import java.util.List;

import cn.edu.wfit.modules.learn.domain.WfitSource;
import cn.edu.wfit.modules.learn.mapper.projectmanagement.WfitSourceMapper;
import cn.edu.wfit.modules.learn.service.projectmanagement.IWfitSourceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 项目成员分数Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-07-25
 */
@Service
public class WfitSourceServiceImpl implements IWfitSourceService
{
    @Autowired
    private WfitSourceMapper wfitSourceMapper;

    /**
     * 查询项目成员分数
     * 
     * @param id 项目成员分数主键
     * @return 项目成员分数
     */
    @Override
    public WfitSource selectWfitSourceById(Long id)
    {
        return wfitSourceMapper.selectWfitSourceById(id);
    }

    /**
     * 查询项目成员分数列表
     * 
     * @param wfitSource 项目成员分数
     * @return 项目成员分数
     */
    @Override
    public List<WfitSource> selectWfitSourceList(WfitSource wfitSource)
    {
        return wfitSourceMapper.selectWfitSourceList(wfitSource);
    }

    /**
     * 新增项目成员分数
     * 
     * @param wfitSource 项目成员分数
     * @return 结果
     */
    @Override
    public int insertWfitSource(WfitSource wfitSource)
    {
        return wfitSourceMapper.insertWfitSource(wfitSource);
    }

    /**
     * 修改项目成员分数
     * 
     * @param wfitSource 项目成员分数
     * @return 结果
     */
    @Override
    public int updateWfitSource(WfitSource wfitSource)
    {
        return wfitSourceMapper.updateWfitSource(wfitSource);
    }

    /**
     * 批量删除项目成员分数
     * 
     * @param ids 需要删除的项目成员分数主键
     * @return 结果
     */
    @Override
    public int deleteWfitSourceByIds(Long[] ids)
    {
        return wfitSourceMapper.deleteWfitSourceByIds(ids);
    }

    /**
     * 删除项目成员分数信息
     * 
     * @param id 项目成员分数主键
     * @return 结果
     */
    @Override
    public int deleteWfitSourceById(Long id)
    {
        return wfitSourceMapper.deleteWfitSourceById(id);
    }
}
